var gl_vue_vm_list_html = $('#vue_vm_list').html();

$(function() {
    $('#vue_vm_list div').hide();
});

function findSubjectRoomSummaryList() {
    if($('#vue_vm_list div').length==0) {return;}
    $('#vue_vm_list div').hide();

    var year = $('#year').val();
    var month = $('#month').val();
    var day = $('#startDay').val();
    var dayValue = getStandardDay(year, month, day);

    find_basic_by_json(path+'/userVipCard/findUserVipCardCostSumm', {day:dayValue},
        onSuccess=function(response) {
            $('#vue_vm_list').html(gl_vue_vm_list_html);
            new Vue({
                el: '#vue_vm_list',
                data: {
                    todos: response.data
                },
                methods: {
                    getDate: function() {
                        return dayValue;
                    },
                }
            });
            $('#vue_vm_list div').show();
        },
        onEmpty=function(response) {
            alert("暂无数据");
            $('#vue_vm_list').html(gl_vue_vm_list_html);
            new Vue({
                el: '#vue_vm_list',
                data: {
                    todos: response.data
                },
                methods: {
                    getPrintDate:function() {
                        return startTime+"至"+endTime;
                    },
                }
            });

            $('#vue_vm_list div').show();
        }
    );
}
